package com.kongfuzi.springaop;

import org.springframework.stereotype.Service;

//要代理的业务对象, 不允许修改源代码
@Service
public class ProductManagerImpl implements ProductManager {
    @Override
    public int addProduct() {
        System.out.println("执行添加商品");
        return 1;
    }
    @Override
    public int deleteProduct(int no) {
        System.out.println("执行删除商品..."+no);
        return 1001;
    }
}